package one.stand.service;

import com.alibaba.fastjson.JSON;
import one.stand.OneUserServiceApplicationTests;
import one.stand.request.CommentRequest;
import one.stand.request.UserLevelRequest;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.TestConfiguration;

@TestConfiguration
public class User extends OneUserServiceApplicationTests {

    @Autowired
    UserService userService;

    @Autowired
    PersonalService personalService;

    @Test
    public void insertUserLevel(){
        UserLevelRequest request = new UserLevelRequest();
        request.setId(121L);
        request.setCompanyId(41);


    }

    @Test
    public void doComment(){
        CommentRequest request = new CommentRequest();
        request.setId(111L);
        request.setDynamicId(41);
        request.setCardId(590);
        request.setText("fdasfds");
        Integer r = null;
        r = 32432;
        int rr = 32432;
        System.err.println(r == rr);
        int rrr = 324321;
        System.err.println(r == rrr);
        //System.err.println(JSON.toJSONString(personalService.doComment(request)));
    }
}
